package com.shigen.demo.entity.req;

import com.shigen.demo.bean.PageRequest;
import com.shigen.demo.entity.Visitors;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

public class VisitorsReq {

  @Data
  // 让其生成的方法中调用父类的方法
  @EqualsAndHashCode(callSuper = true)
  @ApiModel(value = "visitors添加的请求体")
  public static class AddItem extends Visitors {

  }

  @Data
  @EqualsAndHashCode(callSuper = true)
  @ApiModel(value = "visitors分页查询的请求体")
  public static class QueryItem extends PageRequest {

  }

}
